﻿    <link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
        <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <![endif]-->

    <noscript>
        <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
        <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
    </noscript>

@model BulletinMvc.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

<h2>修改密码</h2>
<div id="operate">请用下面的表单修改密码。新密码的长度最小 @Membership.MinRequiredPasswordLength 个字符。 </div>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset class="edit">
            <legend>用户名：@Membership.GetUser().UserName</legend>

            <div class="editor-label">
                 @*@Html.LabelFor(m => m.OldPassword)*@旧密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @*@Html.LabelFor(m => m.NewPassword)*@新密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @*@Html.LabelFor(m => m.ConfirmPassword)*@再输入一遍新密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <div class="editor-btn">
                <input type="submit" value="修改密码" />
            </div>
        </fieldset>
    </div>
}
